﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StoreWeb.system.basis
{
    public partial class sizeedit : System.Web.UI.Page
    {
        Maticsoft.BLL.size bll = new Maticsoft.BLL.size();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //this.parentlist.DataSource = bll.GetList("parentcode is null or parentcode=''");
                //this.parentlist.DataTextField = "name";
                //this.parentlist.DataValueField = "code";
                //this.parentlist.DataBind();
                //this.parentlist.Items.Insert(0, new ListItem("--请选择所属尺寸--", ""));
                cinvstd.Value = Request["cinvstd"];
                if (!string.IsNullOrEmpty(Request["id"]))
                {
                    hidid.Value = Request["id"];
                    Maticsoft.Model.size size = bll.GetModel(Convert.ToInt32(hidid.Value));
                    //ddlisttype.SelectedItem.Value = size.type.ToString();
                    //parentlist.SelectedItem.Value = size.parentcode;
                    code.Value = size.code;
                    name.Value = size.name;
                    value.Value = size.value.ToString();
                    minpx.Value = size.minpx.ToString();
                    maxpx.Value = size.minpx.ToString();
                    group.Value = size.groups;
                    note.Value = size.note;
                }
            }
            //this.classlist.DataSource = bllc.GetList("iInvCGrade=1");
            //this.classlist.DataTextField = "cInvCName";
            //this.classlist.DataValueField = "cInvCCode";
            //this.classlist.DataBind();
        }
    }
}